import request from '@/utils/request'
import $qs from 'qs'

export function synWechat(filters) {
  return request({
    url: '/synWechat',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
// 用户列表请求同步
export function synSpeed(filters) {
  return request({
    url: '/synSpeed',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
export function getMergeUserInfo(filters) {
  return request({
    url: '/getMergeUserInfo',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
export function userImport(params) {
  return request({
    url: '/userImport',
    method: 'post',
    data: params
  })
}
export function editReferee(filters) {
  return request({
    url: '/editReferee',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
export function recharge(filters) {
  return request({
    url: '/recharge',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
export function editMoney(filters) {
  return request({
    url: '/editMoney',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
export function balanceOrders(filters) {
  return request({
    url: '/balanceOrders',
    method: 'post',
    data: $qs.stringify(filters)
  })
}
// 新增或者编辑用户
export function userAdd(filters) {
  return request({
    url: '/memberChange',
    method: 'post',
    data: $qs.stringify(filters)
  })
}

export function userPlatList(filters) {
  return request({
    url: '/memberRecycle',
    method: 'post',
    data: $qs.stringify(filters)
  })
}

export function userRestore(params) {
  return request({
    url: '/memberRestore',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function memberDetail(params) {
  return request({
    url: '/memberDetail',
    method: 'get',
    params: params
  })
}

export function userSet(params) {
  return request({
    url: '/memberSet',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userSetOld(params) {
  return request({
    url: '/memberRegister',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function memberStatus(params) {
  return request({
    url: '/memberStatus',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function editAdminPassword(params) {
  return request({
    url: '/editAdminPassword',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function reviseStoreUserPaw(params) {
  return request({
    url: '/reviseStoreUserPaw',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function cacheClear(params) {
  return request({
    url: '/cacheClear',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function wipeCacheTime(params) {
  return request({
    url: '/wipeCacheTime',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userList(params) {
  return request({
    url: '/userList',
    method: 'post',
    data: $qs.stringify(params)
  })
}

// 获取用户列表
export function memberIndex(params) {
  return request({
    url: '/memberIndex',
    method: 'post',
    data: $qs.stringify(params)
  })
}

// 删除用户
export function memberSoftDel(params) {
  // debugger
  return request({
    url: '/memberSoftDel',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userGet(params) {
  return request({
    url: '/userGet',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userDelete(params) {
  return request({
    url: '/userDelete',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userListDel(params) {
  return request({
    url: '/userListDel',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function userOp(params) {
  return request({
    url: '/userOp',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function labelSave(params) {
  return request({
    url: '/labelSave',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function labelList(params) {
  return request({
    url: '/labelList',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function labelDelete(params) {
  return request({
    url: '/labelDelete',
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function labelGet(params) {
  return request({
    url: '/labelGet',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function userMerge(params) {
  return request({
    url: '/userMerge',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function getWechatNews(params) {
  return request({
    url: '/getWechatNews',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function refund(params) {
  return request({
    url: '/refund',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function remarks(params) {
  return request({
    url: '/remarks',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function bindQrcode(params) {
  return request({
    url: '/bindQrcode',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function nobindQrcode(params) {
  return request({
    url: '/nobindQrcode',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function showWechatUser(params) {
  return request({
    url: '/showWechatUser',
    method: 'post',
    data: $qs.stringify(params)
  })
}
export function adminBindWechatResult(params) {
  return request({
    url: '/adminBindWechatResult',
    method: 'post',
    data: $qs.stringify(params)
  })
}

